package models

import (
	"hc-admin/common/models"
)

type BusPage struct {
	models.Model

	Lang      string `json:"lang" gorm:"type:tinyint;comment:1繁体，2简体，3英语"`
	Title     string `json:"title" gorm:"type:varchar(50);comment:页面标题"`
	SubTitle  string `json:"subTitle" gorm:"type:varchar(50);comment:副标题"`
	PageKey   string `json:"pageKey" gorm:"type:varchar(50);comment:页面key"`
	OrderSort int    `json:"orderSort" gorm:"type:tinyint;comment:排序号"`
	ThumbImg  string `json:"thumbImg" gorm:"type:varchar(255);comment:缩略图"`
	Content   string `json:"content" gorm:"type:text;comment:页面内容"`
	Status    string `json:"status" gorm:"type:varchar(4);comment:状态"`
	models.ModelTime
	models.ControlBy
}

func (BusPage) TableName() string {
	return "bus_page"
}

func (e *BusPage) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *BusPage) GetId() interface{} {
	return e.Id
}
